/**
 * @TextTips.as
 * 
 * @author sodaChen mail:sujun10#21cn.com
 * @version 1.0
 * <br>Copyright (C), 2014 FeiYin.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:Battle
 * <br>Date:2014-10-10
 */
package com.asframe.display.tip
{
	import com.asframe.mgr.TipsMgr;
	
	import flash.display.Sprite;

	/**
	 * 文本提示对象集合，静态类，处理
	 * @author sodaChen
	 * Date:2014-10-10
	 */
	public class TextTips
	{
		/** 默认的提示view对象 **/
		public static var defaultView:TextTipView = new TextTipView();
		
		public static function register(sprite:Sprite,tip:String,tipView:ITipView = null):void
		{
			if(tipView == null)
				tipView = defaultView;
			
			TipsMgr.getInstance().registerTip(sprite,tipView);
		}
		
		public static function uregister(sprite:Sprite):void
		{
			TipsMgr.getInstance().unregisterTip(sprite);
		}
	}
}